import {request} from './request'
//获取站点监测列表
export const getListAll = (type:String,stationType:String,onState:String,comID:Number,userID:Number,searchString:String) =>request.post('/equipment/selectEquipments',{type,stationType,onState,comID,userID,searchString})
//获取报警设备详情
export const getAlarmDetail = (comID:number,type:String | any,equipmentID:String|any) =>request.post('/equipment/GetAlarmDetail',{comID,type,equipmentID})
//获取设备详情
export const getEquipmentDetail = (comID:number,type:String | any,equipmentID:String|any) =>request.post('/equipment/GetEquipmentDetail',{comID,type,equipmentID})
//报警历史
export const getAlarmDealHistary = (comID:number,type:String | any,equipmentID:String|any) =>request.post('/equipment/AlarmDealHistary',{
  comID,
    type,equipmentID 
})
//报警处理
export const processor = (type:String | Number,AlarmRecordsID:String | Number,PersonID:Number,ProcessRecords:String,PhotographUrl:String) =>request.post('/equipment/AlarmSolve',{type,AlarmRecordsID,PersonID,ProcessRecords,PhotographUrl})
//首页信息
export const indexInfo = (comID:number)=>request.post('/index/getHRZInfos',{comID})
//换热站数量
export const Hrztoal = (comID:number)=>request.post('/index/getHRZTotal',{comID})
//全网负荷数据
export const ChargeData = (comID:number,number:number)=>request.post('/index/getLoadForexastAndHeat',{comID,number})
//获取当日负荷数据
export const ChargeDataDay = (comID:number)=>request.post('/index/getLoadForexastAndHeatDay',{comID})
//年度供热数据
export const yearsData = (comID:number)=>request.post('/index/GetHRZInfosForHeat',{comID})
//离线在线站点
export const onlineDatas = (comID:number)=>request.post('/index/HRZtotalByOnLine',{comID})